]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ScreenShield: don't create an unlock dialog if the screen is not locked
authorGiovanni Campagna <gcampagna@src.gnome.org>
Sat, 8 Jun 2013 16:59:20 +0000 (18:59 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Wed, 7 Aug 2013 08:33:15 +0000 (10:33 +0200)
Creating the unlock dialog starts the GDM conversation and activates
the fingerprint sensors, so don't do it unless necessary.

https://bugzilla.gnome.org/show_bug.cgi?id=697833

js/ui/screenShield.js

index 4776333ff03a6aeab54977823d23a9dcded0386d..b5e274347fa26118dd3450020eecb0772ff55c28 100644 (file)
@@ -622,7 +622,8 @@ const ScreenShield = new Lang.Class({
         if (!isEnter && !(GLib.unichar_isprint(unichar) || symbol == Clutter.KEY_Escape))
             return false;
 
-        if (this._ensureUnlockDialog(true, true) &&
+        if (this._isLocked &&
+            this._ensureUnlockDialog(true, true) &&
             GLib.unichar_isgraph(unichar))
             this._dialog.addCharacter(unichar);